home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / pascal / modobj.exe / HARDWARE.DOC < prev    next >
Text File  |  1992-04-12  |  13KB  |  283 lines

  1.              MODOBJ  *********                            (C) Mark J Cox
  2.              MODOBJ  **                                           1991-2
  3.              MODOBJ  *******                              
  4.              MODOBJ  **************   
  5.  
  6.              Hardware devices for great sound output!
  7.  
  8.  
  9.     I. CONTENTS
  10.     ─────────────────────────────────────────────────────────
  11.  
  12.     How to make:
  13.                 Mono output from a parallel port for about 5 pounds
  14.                 Mono output from a parallel port for around 1 pound
  15.                 Stereo from one parallel port for about 12 pounds
  16.         A +5v power supply
  17.         A 22W amplifier
  18.  
  19.     This document has been supplied with MODOBJ.  You may distribute
  20.     this file freely with any program you include MODOBJ in as long as
  21.     it remains unaltered.
  22.  
  23.  
  24.     I. INTRODUCTION
  25.     ─────────────────────────────────────────────────────────
  26.  
  27.     MODPLAY will play modules through the PC Speaker as mentioned above, via
  28.     an D to A converter on any of the three possible parallel ports, in stereo
  29.     if you have an D to A converter on both LPT1 and LPT2 (this sounds really
  30.     good) and also through a special board that plays stereo from one
  31.     printer port ("stereo─on─1")
  32.  
  33.     1. HOW TO MAKE A D/A CONVERTER FOR FIVE POUNDS
  34.     ─────────────────────────────────────────────────────────
  35.  
  36.     A simple circuit for HiFi quality sound needs only a few components (and
  37.     this circuit will work with other software).   It even sounds better than
  38.     a Sound Blaster for sampled output!
  39.  
  40.     You need:
  41.  
  42.     IC1 a ZN426E (about 3 pounds) (Ferranti or Plessey are UK manufacturers)
  43.  
  44.     C1 a 10micro-farad electrolytic capacitor (10V or greater)
  45.  
  46.     C2 a 4.7micro-farad electrolytic capacitor (10V or greater)
  47.  
  48.     R1 a 380ohm resistor (5%, 1/8W)
  49.  
  50.     CON1 a phono socket for connecting a lead to your amplifier
  51.  
  52.     CON2 a 25 way male D-type connector for your parrallel port
  53.  
  54.     A bit of 10 way cable - or 10 short wires.
  55.  
  56.     A +5v supply
  57.  
  58.                                Zn426e    +5V
  59.     D-type pin no  \          ┌────────┐  │  
  60.                   (2)  D0  ───┤9     14├──┤
  61.                   (3)  D1  ───┤10      │ ┌┴┐ 
  62.                   (4)  D2  ───┤11      │ │ │ 390Ω
  63.                   (5)  D3  ───┤12      │ └┬┘
  64.                   (6)  D4  ───┤13     5├──┤
  65.                   (7)  D5  ───┤1      6├──┤       +
  66.                   (8)  D6  ───┤2      4├──│────────┤█────> TO AMPLIFIER
  67.                   (9)  D7  ───┤3   7   │  │        10µF  
  68.                               └────┬───┘ +╧        (may not be needed)
  69.                                    │ 4.7µF█  
  70.                                    │      │  
  71.                   (25) GND ────────┴──────┴────────────── GND
  72.                                    
  73.  
  74.     2. USING A DIFFERENT DAC
  75.     ─────────────────────────────────────────────────────────
  76.  
  77.     Lots of people have found that they cannot get the ZN* chips outside
  78.     the UK - so heres a circuit that will do the same as above..
  79.     Use a DAC0800 or DAC0801 or DAC0803 from National Semiconductors...
  80.  
  81.                                DAC 080x   
  82.    Parallel Port Pin          ┌────────┐0.01µF  0.1µF
  83.                   (2)  D0  ───┤12    16├──┤█────┤█──────┬─── GND 
  84.                   (3)  D1  ───┤11      │                │
  85.                   (4)  D2  ───┤10    15├─────────██████─┘5kΩ 
  86.                   (5)  D3  ───┤9       │                 
  87.                   (6)  D4  ───┤8     14├─────────██████─┐5kΩ 
  88.                   (7)  D5  ───┤7     13├────────────────┤
  89.                   (8)  D6  ───┤6      2├──┤█────────────┴── +5V
  90.                   (9)  D7  ───┤5 3 1  4├──────────┤█────> TO AMPLIFIER
  91.                               └──┬─┬───┘0.1µF    + 10µF  
  92.                                  └─┤             (may not be needed)
  93.                                    │        
  94.                   (25) GND ────────┴──────────────────── GND
  95.  
  96.     The 0.01uF and 2x 0.1uF   capacitors are Ceramic.  Resistor values
  97.     not critical
  98.      
  99.  
  100.     2. GETTING A +5V POWER SUPPLY
  101.     ─────────────────────────────────────────────────────────
  102.  
  103.     Catalogues such as MAPLIN (uk) provide simple circuits for obtaining
  104.     a +5v power supply (it only has to be 100mA maximum).  Alternatively
  105.     you could tap +5v off the keyboard connector or use 3 1.5volt
  106.     batteries (or even 4 1.5volt batteries with two diodes in series to
  107.     drop the voltage).  In fact, anything that produces a voltage in the
  108.     range 4.5 ─ 5.5 volts. (in fact you can even tap +5v from the game
  109.     port).  Don't forget to connect the 0v of your power supply to the GND
  110.     rail shown.
  111.  
  112.     Heres a simple circuit for +5v from mains.  Mains voltage is lethal
  113.     so always get a qualified person to make this if you are unsure.  Make
  114.     certain that the mains voltage is completely isolated from the computer
  115.     side and that it is impossible to touch - If you don't want to take the
  116.     risk then don't make this circuit.
  117.  
  118.            ┌───────────┐     ≈┌───┐+                  ┌──────┐
  119.            │           │      │ B ├─────┬───────┬─────┤ 7805 ├────┬────── +5V
  120.     ───────┤Step down  ├──────┤ R │     │+      │     └──┬───┘    │+
  121.     Mains  │transformer│ 6V   │ I │    ═╪═ C1  ═╪═ C2    │       ═╪═ C3
  122.            │to 6VAC    │ AC   │ D │     │       │        │        │
  123.     ───────┤           ├──────┤ G │     │       │        │        │
  124.            │           │      │ E ├─────┴───────┴────────┴────────┴────── 0V
  125.            └───────────┘     ≈└───┘-
  126.  
  127.     C1     1000 µF electrolytic capacitor            (Circuit from Kenneth
  128.     C2     0.1 µF  ceramic capactitor                 Aaron, Israel)
  129.     C3     100 µF  electrolytic capacitor
  130.     BRIDGE any diode bridge
  131.  
  132.  
  133.     3. HOW TO MAKE AN EVEN CHEAPER D/A
  134.     ─────────────────────────────────────────────────────────
  135.  
  136.     For the price of 20 1% resistors and a plug, with no power supply
  137.     needed you can make a D/A converter that sounds close to the IC
  138.     one above (it seems only the UK can get a Plessey ZN426E)
  139.  
  140.     You need one plug for your amp, one for your parallel port and
  141.     9 20k and 9 10K resistors
  142.     Use 1% resistors if possible ─ and 20k sound much better than 22k
  143.  
  144.           Printer Port:
  145.  
  146.           signal   pin        20k   20k
  147.           D0       2      >───░░░─┬─░░░──0v
  148.                               20k ░ 10k
  149.           D1       3      >───░░░─┤
  150.                               20k ░ 10k
  151.           D2       4      >───░░░─┤
  152.                               20k ░ 10k
  153.           D3       5      >───░░░─┤
  154.                               20k ░ 10k
  155.           D4       6      >───░░░─┤
  156.                               20k ░ 10k
  157.           D5       7      >───░░░─┤
  158.                               20k ░ 10k
  159.           D6       8      >───░░░─┤
  160.                               20k ░ 10k
  161.           D7       9      >───░░░─┤
  162.                               20k ░ 10k  100nF
  163.                                   ├──────┤█────> TO AMPLIFIER
  164.                                   ░ 10k
  165.           GND      20     >───────┼────────────>
  166.                                   0v
  167.           
  168.      Thanks to Harry Stox for the above circuit.  Again, make sure all
  169.      the 0v lines are connected together.  The 100nF capacitor may not
  170.      be needed, try removing it if this circuit sounds poor.
  171.  
  172.  
  173.  
  174.     4. STEREO-ON-1 BOARD
  175.     ─────────────────────────────────────────────────────────
  176.  
  177.     It is possible to play in stereo with only one parallel port (MODPLAY
  178.     version 2.00 onwards) using the circuit below.  MODPLAY will
  179.     automatically detect this circuit if it is present and work out what
  180.     address it is at ─ so you can plug it into any of your parallel ports. 
  181.     MODPLAY needs no further options and will default to playing through
  182.     this device.  The +5v supply can be  anywhere between 4.5 and 5.5 volts
  183.     so it could be run from three 1.5v  batteries. (Or from four
  184.     rechargable batteries as these are only 1.2v) 
  185.  
  186.     * Stereo-on-1 works from MODPLAY 2.03 onwards where it did not in 2.00 *
  187.  
  188.     You can use your stere